<template>
  <div class="nav">
    <div class="nav_1">
      <div class="nav_1_1"><img src="../../../assets/img/dibu/客服.png" alt="">客服</div>
      <div class="nav_1_2"><img src="../../../assets/img/dibu/店铺.png" alt="">店铺</div>
      <div class="nav_1_3" @click="x1"><img v-show="collection" src="../../../assets/img/common/collect.svg" alt=""><img src="../../../assets/img/dibu/收藏.png" v-show="!collection" alt="">收藏</div>
    </div>
    <div class="nav_2">
      <div class="nav_2_1" @click="Skuu">加入购物车</div>
      <div class="nav_2_2"> 购买</div>
    </div>
  </div>
</template>

<script>
export default {
  name:'dibu',
  data(){
    return{
      collection:true
    }
  },
  methods:{
    x1(){
      this.collection = !this.collection
    },
    Skuu(){
			console.log(22);
      this.$bus.$emit("Skuu")
    }
  }
}
</script>

<style scoped>
.nav{
  height: 49px;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background-color: aliceblue;
  text-align: center;
}
.nav .nav_1{
  flex: 1;
  display: flex;
}
.nav_1 div{
  flex: 1;
}
.nav_1 div img{
  display: block;
  margin: auto;
  width: 30px;
}
.nav_2{
  flex: 1;
  display: flex;
  text-align: center;
  line-height: 49px;
  font-size: 19px;
}
.nav_2 div{
  flex: 1;
}
.nav_2 div:first-of-type{
  background-color: rgb(250, 213, 91);
}
.nav_2 div:last-of-type{
  background-color: rgb(255, 80, 147);
}

</style>